package utils

import "scanner/src/config"

// AppID
type AppID struct {
	Content   Content `json:"content"`
	Timestamp string  `json:"timestamp"`
}

type Content struct {
	Appid string `json:"appid"`
}

// TokenResponse
type TokenResponse struct {
	ResCode string `json:"resCode"`
	ResMsg  string `json:"resMsg"`
	Result  Result `json:"result"`
}

type Result struct {
	AccessToken string `json:"access_token"`
}

// NetMetric
type NetMetric struct {
	MetricContent []config.MetricContent `json:"content"`
	Timestamp     string                 `json:"timestamp"`
}

// MetricResponse
type MetricResponse struct {
	ResCode string         `json:"resCode"`
	ResMsg  string         `json:"resMsg"`
	Result  []MetricResult `json:"result"`
}

type MetricResult struct {
	Code          string `json:"code"`
	Msg           string `json:"msg"`
	PerformanceID string `json:"performanceID"`
}
